A medical certificate is a document stating either that a person has passed a medical examination, or that a person is unfit for work for a stated period of time .